package com.java.cloud.provider.controller;

import com.java.cloud.provider.service.MessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jiangli
 * @since 2020/3/11 10:17
 */
@RestController
public class SendMessageController {
	@Autowired
	private MessageProvider messageProvider;

	@GetMapping("/sendMsg")
	public String sendMessage() {
		return messageProvider.send();
	}
}
